package cn.jly.servlet3.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author lanyangji
 * @description userFilter
 * @date 2020/11/14 下午 5:25
 */
public class UserFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("UserFilter.doFilter");
        filterChain.doFilter(servletRequest, servletResponse);
    }

    @Override
    public void destroy() {

    }
}
